package com.shop.shopcommon.constant;

/**
 * 猜你喜欢模块的用户推荐业务的常量
 */
public class ElasticSearchConstant {
    //ik分词器模式ik_max_word 最细粒度
    public static final String IK_MAX_WORD = "ik_max_word";
    //ik分词器模式ik_smart 最粗粗粒度
    public static final String IK_SMART = "ik_smart";
    // 将要存储的用户搜索词条数
    public static final Integer SAVE_USER_HISTORY_KEYWORDS_NUM=20;
    // 获取用户搜索记录数量
    public static final Integer SELECT_HISTORY_NUM=10;
    // 所有用户搜索记录索引库名
    public static final String USER_SEARCH_WORD_INDEX_NAME = "user_history_keywords";
    // 商品索引库名
    public static final String GOODS_INDEX_NAME = "shop_goods";



    // 商品名字段
    public static final String GOODS_NAME_FIELD = "goodsName";
    // 商品价格字段
    public static final String GOODS_PRICE_FIELD = "goodsPriceMin";
    // 商品id字段
    public static final String GOODS_ID_FIELD = "id";
    // 商品销量字段
    public static final String GOODS_SALES_FIELD = "goodsSales";
    // 商品图片路径字段
    public static final String GOODS_IMAGE_FIELD = "goodsImage";

    // 商品库存字段
    public static final String GOODS_STOCK_FIELD = "stockTotal";



    // 商品排序类型 id
    public static final String SORT_TYPE_ID = "id";
    // 商品排序类型 price
    public static final String SORT_TYPE_PRICE = "price";
    // 商品排序类型 sales
    public static final String SORT_TYPE_SALES = "sales";


    // 搜索商品列表分页参数
    public static final Integer SEARCH_GOODS_PAGE_NUM = 5;

}
